﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PayMent.aspx.cs" Inherits="AlbonWeb.Manager.OrderManager.PayMent" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>PayMent</title>
    <script src="/js/ADS.js" type="text/javascript"></script>
    <script src="/js/content.js" type="text/javascript"></script>
    <link href="/css/Content.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body, form
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnSearch">
    <div class="rod_left">
    </div>
    <div class="rod_right">
    </div>
    <div class="main_contented">
        <div class="right_top">
            <span class="scon_word">Dealer>>derManager</span>
        </div>
        <table width="750px" border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="4" class="content_title">
                    PayMent
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td align="right">
                    REF#:<asp:TextBox ID="refNo" runat="server"></asp:TextBox>
                </td>
                <td colspan="2">
                    Dealer：<asp:TextBox ID="userName" runat="server" />
                </td>
                <td align="right">
                    <asp:ImageButton ID="btnSearch" ImageUrl="/images/search.gif" runat="server" OnClick="btnSearch_Click" />
                </td>
            </tr>
            <tr class="data_darkcolor">
                <td colspan="3">
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td colspan="4">
                    <table width="99%" cellpadding="0" cellspacing="0" border="1" bordercolor="#AFDA8C"
                        class="tb_list">
                        <asp:Repeater ID="repMain" runat="server" OnItemDataBound="repMain_ItemDataBound">
                            <HeaderTemplate>
                                <tr class="tr_list_head">
                                    <td>
                                        InvoiceNo
                                    </td>
                                    <td>
                                        REF#
                                    </td>
                                    <td style="width: 10%">
                                        Dealer
                                    </td>
                                    <td>
                                        Payment Method
                                    </td>
                                    <td>
                                        Final Total(US$)
                                    </td>
                                    <td>
                                        Status
                                    </td>
                                    <td>
                                        Balance
                                    </td>
                                    <td>
                                        Invoice
                                    </td>
                                    <td>
                                        Adder
                                    </td>
                                    <td>
                                        totalDate
                                    </td>
                                </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="tr_list_content">
                                    <td>
                                        <asp:Label ID="invoiceNo" Text='<%#Eval("InvoiceNo") %>' runat="server" />
                                    </td>
                                    <td>
                                        <%#Eval("refNo") %>
                                    </td>
                                    <td>
                                        <%#Eval("userName") %>
                                    </td>
                                    <td>
                                        <%#Eval("payMethod") %>
                                    </td>
                                    <td>
                                        <asp:Label ID="finalTotal" Text='<%# string.Format("{0:0.00}",decimal.Parse(Eval("totalMoney").ToString())) %>'
                                            runat="server" />
                                    </td>
                                    <td>
                                        <a href='PayRecord.aspx?invoiceNo=<%#Eval("invoiceNo")%>' onclick="return openDialog(this.href,600,500,100)">
                                            <asp:Image ID="Status" ImageUrl="/images/unfinished_bill.gif" runat="server" />
                                        </a>
                                    </td>
                                    <td>
                                        <asp:Label class="lbInfo" ID="Balance" Text="0.00" runat="server" />
                                    </td>
                                    <td>
                                        <a href='<%#Eval("invoicePath") %>' onclick="return openDialog(this.href)">
                                            <img src="/images/totaledbill.gif" alt="view invoice" /></a>
                                    </td>
                                    <td>
                                        <%#Eval("Adder") %>
                                    </td>
                                    <td>
                                        <%#Eval("totalDate") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr>
                            <td colspan="10" align="center" class="netpager">
                                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="First" LastPageText="Last"
                                    NextPageText="Next" PageIndexBoxType="DropDownList" PrevPageText="Prev" ShowBoxThreshold="15"
                                    ShowCustomInfoSection="Left" ShowMoreButtons="False" SubmitButtonText="Go" TextAfterPageIndexBox=""
                                    TextBeforePageIndexBox="Goto" CustomInfoClass="pageinfo" CustomInfoHTML="Current Page : %CurrentPageIndex%    Total Page: %PageCount%"
                                    CustomInfoSectionWidth="30%" CustomInfoTextAlign="Left" OnPageChanging="AspNetPager1_PageChanging"
                                    PageSize="11" UrlPaging="True">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class="content_title">
                <td align="right">
                    Final Total:
                </td>
                <td align="left">
                    <asp:Label class="lbInfo" ID="finalTotal" Text="0.00" runat="server" />
                </td>
                <td align="right">
                    Balance:
                </td>
                <td align="left">
                    <asp:Label class="lbWarn" ID="Balance" Text="0.00" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
